package com.campusnews.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.campusnews.pojo.FirstComment;
import com.campusnews.pojo.SecondComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lqc
 * @since 2021-09-26
 */
@Repository
public interface SecondCommentMapper extends BaseMapper<SecondComment> {
    @Select("select * from second_comment ${ew.customSqlSegment}")
    List<SecondComment> selectAllAndDelete(@Param(Constants.WRAPPER) Wrapper<SecondComment> queryWrapper);
}
